package tech.waterism.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tech.waterism.enums.TimeTypeEnum;
import tech.waterism.enums.TimeUntEnum;

@Data
public class PrincipleTime {
    @ApiModelProperty(value = "时间类型")
    private TimeTypeEnum type;
    @ApiModelProperty(value = "时间值")
    private Double value;
    // 仅当type为INTERVAL时有效
    @ApiModelProperty(value = "时间单位")
    private TimeUntEnum unt;
}
